# _*_coding:utf-8 _*_
# @Time    :2020/12/3 13:16
# @Author  :lyc
# @Email   :lyc0209@qq.com
# @FileName:AirControllerService.py

import os


def air_controller_service(state, mode, tem):
    shell_str = "irsend SEND_ONCE aircon "

    if state == "off":
        shell_str += "state_off"
    else:
        shell_str += "state_on__mode_" + mode + "__tem_" + tem
    print(shell_str)
    os.system(shell_str)


if __name__ == '__main__':
    air_controller_service(state="on", mode="cold", tem="17")
